package com.caleble.sample.aspect;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.context.annotation.Scope;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

/*@Component
@Scope("prototype")
@Aspect*/
public class SendMailAspect implements Ordered {
	
	private int order = 2;
/*
	@Pointcut("!within(com.caleble.sample.dao.*)")
	private void mailOperation() {
	}

	// @Before，@AfterReturning，@AfterThrowing，@After
	@After("com.caleble.sample.aspect.SendMailAspect.mailOperation()")
	public void sendMailBefore() {

		System.out.println("Mail sended after method execute was called ===================");
	}*/

	public int getOrder() {
		return order;
	}
}
